package com.xiaocz.hblsubstitutedriving.model;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * 用户信息
 */
public class UserInfo implements Serializable {

    private String id;
    private String phone;
    private String truename;//真实姓名
    private String idnum;//身份证号码
    private String drivingLicenseTime;//驾驶证领取时间
    private int sex;//0-女 1男
    private int authentication;//是否已认证 0-未认证 1-已认证 2-待认证
    private int status;//0未冻结 1冻结
    private int workstatus;//0-未听单 1-听单 2-忙碌
    private double balance;//账户余额
    private String expiretime;//会费到期时间
    private String createtime;//注册时间
    private long terminalId;//设备Id
    private String province_areaid;//省份Id
    private String city_areaid;//城市Id
    private String siguan_id;//司管id
    private String city_name;//城市名称
    private String siguan_name;//司管名称
    private int limitWork;//0-未限制 1-限制
    private String limitTime_start;//限制开始时间
    private String limitTime_end;//限制结束时间
    private String siguan_phone;//司管电话
    private String token;
    private String headPictureUrl;//用户头像
    private String jobnum;//工号
    private String drive_age;//驾龄（年）
    @SerializedName("siguan_address")
    private String address;//司管地址
    private int recommend;//该城市是否开通推荐赚客户佣金 0-未开放 1开放
    private String recommendNumber;//推荐前多少人
    private String recommendMoney;//推荐一人赚多少钱
    private int orderPattern;//扣费模式

    /**
     * 1-按单提成
     * 2-包月模式
     * 3-按单提成包月模式
     */
    public int getOrderPattern() {
        return orderPattern;
    }

    public void setOrderPattern(int orderPattern) {
        this.orderPattern = orderPattern;
    }

    public int getRecommend() {
        return recommend;
    }

    public void setRecommend(int recommend) {
        this.recommend = recommend;
    }

    public String getRecommendNumber() {
        return recommendNumber;
    }

    public void setRecommendNumber(String recommendNumber) {
        this.recommendNumber = recommendNumber;
    }

    public String getRecommendMoney() {
        return recommendMoney;
    }

    public void setRecommendMoney(String recommendMoney) {
        this.recommendMoney = recommendMoney;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getSiguan_phone() {
        return siguan_phone;
    }

    public void setSiguan_phone(String siguan_phone) {
        this.siguan_phone = siguan_phone;
    }

    public int getLimitWork() {
        return limitWork;
    }

    public void setLimitWork(int limitWork) {
        this.limitWork = limitWork;
    }

    public String getLimitTime_start() {
        return limitTime_start;
    }

    public void setLimitTime_start(String limitTime_start) {
        this.limitTime_start = limitTime_start;
    }

    public String getLimitTime_end() {
        return limitTime_end;
    }

    public void setLimitTime_end(String limitTime_end) {
        this.limitTime_end = limitTime_end;
    }

    public String getProvince_areaid() {
        return province_areaid;
    }

    public void setProvince_areaid(String province_areaid) {
        this.province_areaid = province_areaid;
    }

    public String getJobnum() {
        return jobnum;
    }

    public void setJobnum(String jobnum) {
        this.jobnum = jobnum;
    }

    public String getDrive_age() {
        return drive_age;
    }

    public void setDrive_age(String drive_age) {
        this.drive_age = drive_age;
    }

    public String getCity_areaid() {
        return city_areaid;
    }

    public void setCity_areaid(String city_areaid) {
        this.city_areaid = city_areaid;
    }

    public String getSiguan_id() {
        return siguan_id;
    }

    public void setSiguan_id(String siguan_id) {
        this.siguan_id = siguan_id;
    }

    public String getCity_name() {
        return city_name;
    }

    public void setCity_name(String city_name) {
        this.city_name = city_name;
    }

    public String getSiguan_name() {
        return siguan_name;
    }

    public void setSiguan_name(String siguan_name) {
        this.siguan_name = siguan_name;
    }

    public long getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(long terminalId) {
        this.terminalId = terminalId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public String getIdnum() {
        return idnum;
    }

    public void setIdnum(String idnum) {
        this.idnum = idnum;
    }

    public String getDrivingLicenseTime() {
        return drivingLicenseTime;
    }

    public void setDrivingLicenseTime(String drivingLicenseTime) {
        this.drivingLicenseTime = drivingLicenseTime;
    }

    public String getHeadPictureUrl() {
        return headPictureUrl;
    }

    public void setHeadPictureUrl(String headPictureUrl) {
        this.headPictureUrl = headPictureUrl;
    }

    public String getSex() {
        if(sex==0){
            return "选择性别";
        }else if(sex==1){
            return "女";
        }else {
            return "男";
        }
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getAuthentication() {
        return authentication;
    }

    public void setAuthentication(int authentication) {
        this.authentication = authentication;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getWorkstatus() {
        return workstatus;
    }

    public void setWorkstatus(int workstatus) {
        this.workstatus = workstatus;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public String getExpiretime() {
        return expiretime;
    }

    public void setExpiretime(String expiretime) {
        this.expiretime = expiretime;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }


    @Override
    public String toString() {
        return "UserInfo{" +
                "id='" + id + '\'' +
                ", phone='" + phone + '\'' +
                ", truename='" + truename + '\'' +
                ", idnum='" + idnum + '\'' +
                ", drivingLicenseTime='" + drivingLicenseTime + '\'' +
                ", sex=" + sex +
                ", authentication=" + authentication +
                ", status=" + status +
                ", workstatus=" + workstatus +
                ", balance=" + balance +
                ", expiretime='" + expiretime + '\'' +
                ", createtime='" + createtime + '\'' +
                ", terminalId=" + terminalId +
                ", province_areaid='" + province_areaid + '\'' +
                ", city_areaid='" + city_areaid + '\'' +
                ", siguan_id='" + siguan_id + '\'' +
                ", city_name='" + city_name + '\'' +
                ", siguan_name='" + siguan_name + '\'' +
                ", limitWork=" + limitWork +
                ", limitTime_start='" + limitTime_start + '\'' +
                ", limitTime_end='" + limitTime_end + '\'' +
                ", siguan_phone='" + siguan_phone + '\'' +
                ", token='" + token + '\'' +
                ", headPictureUrl='" + headPictureUrl + '\'' +
                ", jobnum='" + jobnum + '\'' +
                ", drive_age='" + drive_age + '\'' +
                ", address='" + address + '\'' +
                ", recommend=" + recommend +
                ", recommendNumber='" + recommendNumber + '\'' +
                ", recommendMoney='" + recommendMoney + '\'' +
                '}';
    }
}
